/**
 * 
 */
package com.doone.telmarket.domain.factory;

import com.doone.telmarket.domain.Currency;
import com.doone.telmarket.domain.Service;
import com.doone.telmarket.domain.ServiceProduct;

/**
 * @author 吴同庆
 * @date 2009-10-9
 * @description
 * @package com.doone.telmarket.domain.factory
 */

@org.springframework.stereotype.Service
public class ServiceProductFactory {

	public ServiceProduct createServiceProduct(String productId, String productType, String productCost,
			String productName, Service service, String productSummary) {
		Currency cost = new Currency(productCost);
		ServiceProduct product = new ServiceProduct(productId, productType, cost, productName, service, productSummary);
		service.addProduct(product);
		return product;
	}

}
